home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransSkel 3.11.sit / TransSkel v 3.11 / Convenience / SkelAlert.c next >
MacBinary  |  1994-02-20  |  4.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Feb 20 18:30:54 1994, modified Sun Feb 20 18:30:54 1994, creator Think C, type ASCII, 3649 bytes "SkelAlert.c" , at 0xec1 812 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 53 6b 65 6c 41 6c | 65 72 74 2e 63 00 00 00 |..SkelAl|ert.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0e 41 00 | 00 03 2c a9 8d a3 2e a9 |......A.|..,.....|
|00000060| 8d a3 2e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fe aa 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 53 6b | 65 6c 41 6c 65 72 74 20 |/*. * Sk|elAlert |
|00000090| 28 29 0d 20 2a 0d 20 2a | 20 50 72 65 73 65 6e 74 |(). *. *| Present|
|000000a0| 20 61 6e 20 61 6c 65 72 | 74 2c 20 70 6f 73 69 74 | an aler|t, posit|
|000000b0| 69 6f 6e 65 64 20 61 63 | 63 6f 72 64 69 6e 67 20 |ioned ac|cording |
|000000c0| 74 6f 20 74 68 65 20 67 | 69 76 65 6e 20 70 6f 73 |to the g|iven pos|
|000000d0| 69 74 69 6f 6e 69 6e 67 | 20 74 79 70 65 0d 20 2a |itioning| type. *|
|000000e0| 20 75 73 69 6e 67 20 74 | 68 65 20 63 75 72 72 65 | using t|he curre|
|000000f0| 6e 74 20 70 6f 73 69 74 | 69 6f 6e 69 6e 67 20 72 |nt posit|ioning r|
|00000100| 61 74 69 6f 73 2e 20 20 | 54 68 65 20 74 72 69 63 |atios. |The tric|
|00000110| 6b 20 69 73 20 74 6f 20 | 67 72 61 62 20 74 68 65 |k is to |grab the|
|00000120| 20 61 6c 65 72 74 0d 20 | 2a 20 74 65 6d 70 6c 61 | alert. |* templa|
|00000130| 74 65 2c 20 6d 61 6b 65 | 20 73 75 72 65 20 69 74 |te, make| sure it|
|00000140| 20 73 74 61 79 73 20 69 | 6e 20 6d 65 6d 6f 72 79 | stays i|n memory|
|00000150| 2c 20 61 6e 64 20 70 6f | 73 69 74 69 6f 6e 20 69 |, and po|sition i|
|00000160| 74 73 20 77 69 6e 64 6f | 77 0d 20 2a 20 62 6f 75 |ts windo|w. * bou|
|00000170| 6e 64 69 6e 67 20 72 65 | 63 74 61 6e 67 6c 65 20 |nding re|ctangle |
|00000180| 62 65 66 6f 72 65 20 74 | 68 65 20 41 6c 65 72 74 |before t|he Alert|
|00000190| 28 29 20 63 61 6c 6c 20 | 69 73 20 6d 61 64 65 2e |() call |is made.|
|000001a0| 0d 20 2a 0d 20 2a 20 53 | 6b 65 6c 41 6c 65 72 74 |. *. * S|kelAlert|
|000001b0| 28 29 20 72 65 74 75 72 | 6e 73 20 77 68 61 74 65 |() retur|ns whate|
|000001c0| 76 65 72 20 76 61 6c 75 | 65 20 74 68 65 20 61 6c |ver valu|e the al|
|000001d0| 65 72 74 20 77 6f 75 6c | 64 20 6e 6f 72 6d 61 6c |ert woul|d normal|
|000001e0| 6c 79 20 72 65 74 75 72 | 6e 2c 0d 20 2a 20 65 78 |ly retur|n,. * ex|
|000001f0| 63 65 70 74 20 74 68 61 | 74 20 61 6e 20 65 72 72 |cept tha|t an err|
|00000200| 6f 72 20 76 61 6c 75 65 | 20 69 73 20 72 65 74 75 |or value| is retu|
|00000210| 72 6e 65 64 20 69 66 20 | 74 68 65 20 61 6c 65 72 |rned if |the aler|
|00000220| 74 20 63 61 6e 6e 6f 74 | 20 62 65 20 70 72 65 73 |t cannot| be pres|
|00000230| 65 6e 74 65 64 2e 0d 20 | 2a 2f 0d 0d 23 20 69 6e |ented.. |*/..# in|
|00000240| 63 6c 75 64 65 09 22 54 | 72 61 6e 73 53 6b 65 6c |clude."T|ransSkel|
|00000250| 2e 68 22 0d 0d 0d 2f 2a | 20 64 69 61 6c 6f 67 20 |.h".../*| dialog |
|00000260| 62 6f 78 20 68 61 64 20 | 38 20 70 69 78 65 6c 20 |box had |8 pixel |
|00000270| 62 6f 72 64 65 72 20 2a | 2f 0d 0d 23 20 64 65 66 |border *|/..# def|
|00000280| 69 6e 65 09 64 6c 6f 67 | 42 6f 78 42 6f 72 64 65 |ine.dlog|BoxBorde|
|00000290| 72 09 38 0d 0d 2f 2a 0d | 20 2a 20 54 68 65 20 69 |r.8../*.| * The i|
|000002a0| 6e 69 74 69 61 6c 20 28 | 64 65 66 61 75 6c 74 29 |nitial (|default)|
|000002b0| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 61 6e 64 20 | horizon|tal and |
|000002c0| 76 65 72 74 69 63 61 6c | 20 70 6f 73 69 74 69 6f |vertical| positio|
|000002d0| 6e 69 6e 67 20 72 61 74 | 69 6f 73 0d 20 2a 20 61 |ning rat|ios. * a|
|000002e0| 72 65 20 74 68 6f 73 65 | 20 67 69 76 65 6e 20 62 |re those| given b|
|000002f0| 79 20 41 70 70 6c 65 27 | 73 20 28 63 75 72 72 65 |y Apple'|s (curre|
|00000300| 6e 74 29 20 48 75 6d 61 | 6e 20 49 6e 74 65 72 66 |nt) Huma|n Interf|
|00000310| 61 63 65 20 47 75 69 64 | 65 6c 69 6e 65 73 2e 0d |ace Guid|elines..|
|00000320| 20 2a 2f 0d 0d 23 20 64 | 65 66 69 6e 65 09 64 65 | */..# d|efine.de|
|00000330| 66 48 6f 72 69 7a 52 61 | 74 69 6f 09 46 69 78 52 |fHorizRa|tio.FixR|
|00000340| 61 74 69 6f 20 28 31 2c | 20 32 29 0d 23 20 64 65 |atio (1,| 2).# de|
|00000350| 66 69 6e 65 09 64 65 66 | 56 65 72 74 52 61 74 69 |fine.def|VertRati|
|00000360| 6f 09 46 69 78 52 61 74 | 69 6f 20 28 31 2c 20 35 |o.FixRat|io (1, 5|
|00000370| 29 0d 0d 73 74 61 74 69 | 63 20 46 69 78 65 64 09 |)..stati|c Fixed.|
|00000380| 68 6f 72 69 7a 52 61 74 | 69 6f 20 3d 20 2d 31 3b |horizRat|io = -1;|
|00000390| 0d 73 74 61 74 69 63 20 | 46 69 78 65 64 09 76 65 |.static |Fixed.ve|
|000003a0| 72 74 52 61 74 69 6f 20 | 3d 20 2d 31 3b 0d 0d 0d |rtRatio |= -1;...|
|000003b0| 2f 2a 0d 20 2a 20 47 65 | 74 20 63 75 72 72 65 6e |/*. * Ge|t curren|
|000003c0| 74 20 70 6f 73 69 74 69 | 6f 6e 69 6e 67 20 72 61 |t positi|oning ra|
|000003d0| 74 69 6f 73 2e 20 20 4d | 61 6b 65 20 73 75 72 65 |tios. M|ake sure|
|000003e0| 20 74 6f 20 69 6e 69 74 | 69 61 6c 69 7a 65 20 74 | to init|ialize t|
|000003f0| 68 65 6d 20 69 66 0d 20 | 2a 20 74 68 65 79 20 68 |hem if. |* they h|
|00000400| 61 76 65 6e 27 74 20 62 | 65 65 6e 20 73 65 74 20 |aven't b|een set |
|00000410| 79 65 74 2e 20 20 54 68 | 69 73 20 69 73 20 6e 65 |yet. Th|is is ne|
|00000420| 63 65 73 73 61 72 79 20 | 62 65 63 61 75 73 65 20 |cessary |because |
|00000430| 68 6f 72 69 7a 52 61 74 | 69 6f 0d 20 2a 20 61 6e |horizRat|io. * an|
|00000440| 64 20 76 65 72 74 52 61 | 74 69 6f 20 63 61 6e 27 |d vertRa|tio can'|
|00000450| 74 20 62 65 20 69 6e 69 | 74 69 61 6c 69 7a 65 64 |t be ini|tialized|
|00000460| 20 74 6f 20 74 68 65 20 | 6e 6f 6e 2d 63 6f 6e 73 | to the |non-cons|
|00000470| 74 61 6e 74 20 76 61 6c | 75 65 73 0d 20 2a 20 64 |tant val|ues. * d|
|00000480| 65 66 48 6f 72 69 7a 52 | 61 74 69 6f 20 61 6e 64 |efHorizR|atio and|
|00000490| 20 64 65 66 56 65 72 74 | 52 61 74 69 6f 2e 0d 20 | defVert|Ratio.. |
|000004a0| 2a 0d 20 2a 20 45 69 74 | 68 65 72 20 70 61 72 61 |*. * Eit|her para|
|000004b0| 6d 65 74 65 72 20 63 61 | 6e 20 62 65 20 6e 69 6c |meter ca|n be nil|
|000004c0| 20 69 66 20 74 68 65 20 | 63 61 6c 6c 65 72 20 69 | if the |caller i|
|000004d0| 73 20 6e 6f 74 20 69 6e | 74 65 72 65 73 74 65 64 |s not in|terested|
|000004e0| 20 69 6e 0d 20 2a 20 74 | 68 65 20 63 6f 72 72 65 | in. * t|he corre|
|000004f0| 73 70 6f 6e 64 69 6e 67 | 20 76 61 6c 75 65 2e 0d |sponding| value..|
|00000500| 20 2a 2f 0d 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 | */..pas|cal void|
|00000510| 0d 53 6b 65 6c 47 65 74 | 41 6c 65 72 74 50 6f 73 |.SkelGet|AlertPos|
|00000520| 52 61 74 69 6f 73 20 28 | 46 69 78 65 64 20 2a 68 |Ratios (|Fixed *h|
|00000530| 52 61 74 69 6f 2c 20 46 | 69 78 65 64 20 2a 76 52 |Ratio, F|ixed *vR|
|00000540| 61 74 69 6f 29 0d 7b 0d | 09 69 66 20 28 68 52 61 |atio).{.|.if (hRa|
|00000550| 74 69 6f 20 21 3d 20 28 | 46 69 78 65 64 20 2a 29 |tio != (|Fixed *)|
|00000560| 20 6e 69 6c 29 0d 09 7b | 0d 09 09 69 66 20 28 68 | nil)..{|...if (h|
|00000570| 6f 72 69 7a 52 61 74 69 | 6f 20 3d 3d 20 28 46 69 |orizRati|o == (Fi|
|00000580| 78 65 64 29 20 2d 31 29 | 0d 09 09 09 68 6f 72 69 |xed) -1)|....hori|
|00000590| 7a 52 61 74 69 6f 20 3d | 20 64 65 66 48 6f 72 69 |zRatio =| defHori|
|000005a0| 7a 52 61 74 69 6f 3b 0d | 09 09 2a 68 52 61 74 69 |zRatio;.|..*hRati|
|000005b0| 6f 20 3d 20 68 6f 72 69 | 7a 52 61 74 69 6f 3b 0d |o = hori|zRatio;.|
|000005c0| 09 7d 0d 09 69 66 20 28 | 76 52 61 74 69 6f 20 21 |.}..if (|vRatio !|
|000005d0| 3d 20 28 46 69 78 65 64 | 20 2a 29 20 6e 69 6c 29 |= (Fixed| *) nil)|
|000005e0| 0d 09 7b 0d 09 09 69 66 | 20 28 76 65 72 74 52 61 |..{...if| (vertRa|
|000005f0| 74 69 6f 20 3d 3d 20 28 | 46 69 78 65 64 29 20 2d |tio == (|Fixed) -|
|00000600| 31 29 0d 09 09 09 76 65 | 72 74 52 61 74 69 6f 20 |1)....ve|rtRatio |
|00000610| 3d 20 64 65 66 56 65 72 | 74 52 61 74 69 6f 3b 0d |= defVer|tRatio;.|
|00000620| 09 09 2a 76 52 61 74 69 | 6f 20 3d 20 76 65 72 74 |..*vRati|o = vert|
|00000630| 52 61 74 69 6f 3b 0d 09 | 7d 0d 7d 0d 0d 0d 2f 2a |Ratio;..|}.}.../*|
|00000640| 0d 20 2a 20 53 65 74 20 | 63 75 72 72 65 6e 74 20 |. * Set |current |
|00000650| 70 6f 73 69 74 69 6f 6e | 69 6e 67 20 72 61 74 69 |position|ing rati|
|00000660| 6f 73 0d 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 76 |os. */..|pascal v|
|00000670| 6f 69 64 0d 53 6b 65 6c | 53 65 74 41 6c 65 72 74 |oid.Skel|SetAlert|
|00000680| 50 6f 73 52 61 74 69 6f | 73 20 28 46 69 78 65 64 |PosRatio|s (Fixed|
|00000690| 20 68 52 61 74 69 6f 2c | 20 46 69 78 65 64 20 76 | hRatio,| Fixed v|
|000006a0| 52 61 74 69 6f 29 0d 7b | 0d 09 68 6f 72 69 7a 52 |Ratio).{|..horizR|
|000006b0| 61 74 69 6f 20 3d 20 68 | 52 61 74 69 6f 3b 0d 09 |atio = h|Ratio;..|
|000006c0| 76 65 72 74 52 61 74 69 | 6f 20 3d 20 76 52 61 74 |vertRati|o = vRat|
|000006d0| 69 6f 3b 0d 7d 0d 0d 0d | 2f 2a 0d 20 2a 20 50 6f |io;.}...|/*. * Po|
|000006e0| 73 69 74 69 6f 6e 20 61 | 6e 64 20 70 72 65 73 65 |sition a|nd prese|
|000006f0| 6e 74 20 61 6e 20 61 6c | 65 72 74 2e 0d 20 2a 0d |nt an al|ert.. *.|
|00000700| 20 2a 20 54 68 65 20 61 | 6c 65 72 74 20 62 6f 75 | * The a|lert bou|
|00000710| 6e 64 69 6e 67 20 62 6f | 78 20 69 73 20 73 61 76 |nding bo|x is sav|
|00000720| 65 64 20 62 65 66 6f 72 | 65 20 70 6f 73 74 69 6f |ed befor|e postio|
|00000730| 6e 69 6e 67 20 69 74 20 | 61 6e 64 20 72 65 73 74 |ning it |and rest|
|00000740| 6f 72 65 64 0d 20 2a 20 | 61 66 74 65 72 77 61 72 |ored. * |afterwar|
|00000750| 64 2c 20 69 6e 20 63 61 | 73 65 20 74 68 65 20 72 |d, in ca|se the r|
|00000760| 65 73 6f 75 72 63 65 20 | 69 73 20 75 73 65 64 20 |esource |is used |
|00000770| 6f 75 74 73 69 64 65 20 | 6f 66 20 74 68 69 73 20 |outside |of this |
|00000780| 66 75 6e 63 74 69 6f 6e | 2e 0d 20 2a 2f 0d 0d 70 |function|.. */..p|
|00000790| 61 73 63 61 6c 20 73 68 | 6f 72 74 0d 53 6b 65 6c |ascal sh|ort.Skel|
|000007a0| 41 6c 65 72 74 20 28 73 | 68 6f 72 74 20 61 6c 72 |Alert (s|hort alr|
|000007b0| 74 52 65 73 4e 75 6d 2c | 20 4d 6f 64 61 6c 46 69 |tResNum,| ModalFi|
|000007c0| 6c 74 65 72 50 72 6f 63 | 50 74 72 20 66 69 6c 74 |lterProc|Ptr filt|
|000007d0| 65 72 2c 20 73 68 6f 72 | 74 20 70 6f 73 69 74 69 |er, shor|t positi|
|000007e0| 6f 6e 54 79 70 65 29 0d | 7b 0d 47 72 61 66 50 74 |onType).|{.GrafPt|
|000007f0| 72 09 09 6f 6c 64 50 6f | 72 74 3b 0d 41 6c 65 72 |r..oldPo|rt;.Aler|
|00000800| 74 54 48 6e 64 6c 09 68 | 3b 0d 52 65 63 74 09 09 |tTHndl.h|;.Rect..|
|00000810| 6f 72 69 67 52 65 63 74 | 3b 0d 52 65 63 74 09 09 |origRect|;.Rect..|
|00000820| 72 65 66 52 65 63 74 3b | 0d 52 65 63 74 09 09 2a |refRect;|.Rect..*|
|00000830| 72 70 3b 0d 53 69 67 6e | 65 64 42 79 74 65 09 73 |rp;.Sign|edByte.s|
|00000840| 74 61 74 65 3b 0d 73 68 | 6f 72 74 09 09 72 65 73 |tate;.sh|ort..res|
|00000850| 75 6c 74 3b 0d 46 69 78 | 65 64 09 09 68 52 61 74 |ult;.Fix|ed..hRat|
|00000860| 69 6f 2c 20 76 52 61 74 | 69 6f 3b 0d 0d 09 47 65 |io, vRat|io;...Ge|
|00000870| 74 50 6f 72 74 20 28 26 | 6f 6c 64 50 6f 72 74 29 |tPort (&|oldPort)|
|00000880| 3b 0d 09 68 20 3d 20 28 | 41 6c 65 72 74 54 48 6e |;..h = (|AlertTHn|
|00000890| 64 6c 29 20 47 65 74 52 | 65 73 6f 75 72 63 65 20 |dl) GetR|esource |
|000008a0| 28 27 41 4c 52 54 27 2c | 20 61 6c 72 74 52 65 73 |('ALRT',| alrtRes|
|000008b0| 4e 75 6d 29 3b 0d 09 69 | 66 20 28 68 20 3d 3d 20 |Num);..i|f (h == |
|000008c0| 28 41 6c 65 72 74 54 48 | 6e 64 6c 29 20 6e 69 6c |(AlertTH|ndl) nil|
|000008d0| 29 0d 09 7b 0d 09 09 53 | 79 73 42 65 65 70 20 28 |)..{...S|ysBeep (|
|000008e0| 31 29 3b 0d 09 09 72 65 | 74 75 72 6e 20 28 52 65 |1);...re|turn (Re|
|000008f0| 73 45 72 72 6f 72 20 28 | 29 29 3b 0d 09 7d 0d 09 |sError (|));..}..|
|00000900| 73 74 61 74 65 20 3d 20 | 48 47 65 74 53 74 61 74 |state = |HGetStat|
|00000910| 65 20 28 28 48 61 6e 64 | 6c 65 29 20 68 29 3b 0d |e ((Hand|le) h);.|
|00000920| 09 48 4e 6f 50 75 72 67 | 65 20 28 28 48 61 6e 64 |.HNoPurg|e ((Hand|
|00000930| 6c 65 29 20 68 29 3b 09 | 09 09 09 2f 2a 20 6d 61 |le) h);.|.../* ma|
|00000940| 6b 65 20 73 75 72 65 20 | 69 74 27 73 20 61 72 6f |ke sure |it's aro|
|00000950| 75 6e 64 20 2a 2f 0d 09 | 4c 6f 61 64 52 65 73 6f |und */..|LoadReso|
|00000960| 75 72 63 65 20 28 28 48 | 61 6e 64 6c 65 29 20 68 |urce ((H|andle) h|
|00000970| 29 3b 09 09 09 2f 2a 20 | 61 6e 64 20 73 74 61 79 |);.../* |and stay|
|00000980| 73 20 61 72 6f 75 6e 64 | 20 2a 2f 0d 09 4d 6f 76 |s around| */..Mov|
|00000990| 65 48 48 69 20 28 28 48 | 61 6e 64 6c 65 29 20 68 |eHHi ((H|andle) h|
|000009a0| 29 3b 0d 09 48 4c 6f 63 | 6b 20 28 28 48 61 6e 64 |);..HLoc|k ((Hand|
|000009b0| 6c 65 29 20 68 29 3b 0d | 09 6f 72 69 67 52 65 63 |le) h);.|.origRec|
|000009c0| 74 20 3d 20 28 2a 2a 68 | 29 2e 62 6f 75 6e 64 73 |t = (**h|).bounds|
|000009d0| 52 65 63 74 3b 09 09 2f | 2a 20 73 61 76 65 20 6f |Rect;../|* save o|
|000009e0| 72 69 67 69 6e 61 6c 20 | 70 6f 73 69 74 69 6f 6e |riginal |position|
|000009f0| 20 2a 2f 0d 09 69 66 20 | 28 70 6f 73 69 74 69 6f | */..if |(positio|
|00000a00| 6e 54 79 70 65 20 21 3d | 20 73 6b 65 6c 50 6f 73 |nType !=| skelPos|
|00000a10| 69 74 69 6f 6e 4e 6f 6e | 65 29 0d 09 7b 0d 09 09 |itionNon|e)..{...|
|00000a20| 2f 2a 0d 09 09 20 2a 20 | 49 6e 73 65 74 20 62 6f |/*... * |Inset bo|
|00000a30| 75 6e 64 69 6e 67 20 72 | 65 63 74 61 6e 67 6c 65 |unding r|ectangle|
|00000a40| 20 73 6f 20 70 6f 73 69 | 74 69 6f 6e 20 69 73 20 | so posi|tion is |
|00000a50| 65 66 66 65 63 74 69 76 | 65 6c 79 20 64 6f 6e 65 |effectiv|ely done|
|00000a60| 20 75 73 69 6e 67 0d 09 | 09 20 2a 20 74 68 65 20 | using..|. * the |
|00000a70| 73 74 72 75 63 74 75 72 | 65 20 72 65 63 74 61 6e |structur|e rectan|
|00000a80| 67 6c 65 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |gle rath|er than |
|00000a90| 74 68 65 20 63 6f 6e 74 | 65 6e 74 20 72 65 63 74 |the cont|ent rect|
|00000aa0| 61 6e 67 6c 65 2e 0d 09 | 09 20 2a 2f 0d 09 09 49 |angle...|. */...I|
|00000ab0| 6e 73 65 74 52 65 63 74 | 20 28 26 28 2a 2a 68 29 |nsetRect| (&(**h)|
|00000ac0| 2e 62 6f 75 6e 64 73 52 | 65 63 74 2c 20 2d 64 6c |.boundsR|ect, -dl|
|00000ad0| 6f 67 42 6f 78 42 6f 72 | 64 65 72 2c 20 2d 64 6c |ogBoxBor|der, -dl|
|00000ae0| 6f 67 42 6f 78 42 6f 72 | 64 65 72 29 3b 0d 0d 09 |ogBoxBor|der);...|
|00000af0| 09 53 6b 65 6c 47 65 74 | 52 65 66 65 72 65 6e 63 |.SkelGet|Referenc|
|00000b00| 65 52 65 63 74 20 28 26 | 72 65 66 52 65 63 74 2c |eRect (&|refRect,|
|00000b10| 20 70 6f 73 69 74 69 6f | 6e 54 79 70 65 29 3b 0d | positio|nType);.|
|00000b20| 09 09 53 6b 65 6c 47 65 | 74 41 6c 65 72 74 50 6f |..SkelGe|tAlertPo|
|00000b30| 73 52 61 74 69 6f 73 20 | 28 26 68 52 61 74 69 6f |sRatios |(&hRatio|
|00000b40| 2c 20 26 76 52 61 74 69 | 6f 29 3b 0d 09 09 53 6b |, &vRati|o);...Sk|
|00000b50| 65 6c 50 6f 73 69 74 69 | 6f 6e 52 65 63 74 20 28 |elPositi|onRect (|
|00000b60| 26 72 65 66 52 65 63 74 | 2c 20 26 28 2a 2a 68 29 |&refRect|, &(**h)|
|00000b70| 2e 62 6f 75 6e 64 73 52 | 65 63 74 2c 20 68 52 61 |.boundsR|ect, hRa|
|00000b80| 74 69 6f 2c 20 76 52 61 | 74 69 6f 29 3b 0d 09 09 |tio, vRa|tio);...|
|00000b90| 2f 2a 0d 09 09 20 2a 20 | 49 66 20 61 6c 65 72 74 |/*... * |If alert|
|00000ba0| 20 69 73 20 74 6f 20 62 | 65 20 70 6f 73 69 74 69 | is to b|e positi|
|00000bb0| 6f 6e 65 64 20 6f 6e 20 | 70 61 72 65 6e 74 20 77 |oned on |parent w|
|00000bc0| 69 6e 64 6f 77 2c 20 61 | 6c 65 72 74 20 6d 69 67 |indow, a|lert mig|
|00000bd0| 68 74 20 62 65 0d 09 09 | 20 2a 20 70 61 72 74 6c |ht be...| * partl|
|00000be0| 79 20 69 6e 76 69 73 69 | 62 6c 65 20 69 66 20 70 |y invisi|ble if p|
|00000bf0| 61 72 65 6e 74 20 69 73 | 20 6d 6f 76 65 64 20 70 |arent is| moved p|
|00000c00| 61 72 74 6c 79 20 6f 66 | 66 20 74 68 65 20 64 65 |artly of|f the de|
|00000c10| 73 6b 74 6f 70 2e 20 20 | 49 66 0d 09 09 20 2a 20 |sktop. |If... * |
|00000c20| 73 6f 2c 20 72 65 70 6f | 73 69 74 69 6f 6e 20 61 |so, repo|sition a|
|00000c30| 6c 65 72 74 20 6f 6e 20 | 70 61 72 65 6e 74 20 64 |lert on |parent d|
|00000c40| 65 76 69 63 65 2e 0d 09 | 09 20 2a 2f 0d 09 09 69 |evice...|. */...i|
|00000c50| 66 20 28 70 6f 73 69 74 | 69 6f 6e 54 79 70 65 20 |f (posit|ionType |
|00000c60| 3d 3d 20 73 6b 65 6c 50 | 6f 73 69 74 69 6f 6e 4f |== skelP|ositionO|
|00000c70| 6e 50 61 72 65 6e 74 57 | 69 6e 64 6f 77 0d 09 09 |nParentW|indow...|
|00000c80| 09 09 26 26 20 21 53 6b | 65 6c 54 65 73 74 52 65 |..&& !Sk|elTestRe|
|00000c90| 63 74 56 69 73 69 62 6c | 65 20 28 26 28 2a 2a 68 |ctVisibl|e (&(**h|
|00000ca0| 29 2e 62 6f 75 6e 64 73 | 52 65 63 74 29 29 0d 09 |).bounds|Rect))..|
|00000cb0| 09 7b 0d 09 09 09 53 6b | 65 6c 47 65 74 52 65 66 |.{....Sk|elGetRef|
|00000cc0| 65 72 65 6e 63 65 52 65 | 63 74 20 28 26 72 65 66 |erenceRe|ct (&ref|
|00000cd0| 52 65 63 74 2c 20 73 6b | 65 6c 50 6f 73 69 74 69 |Rect, sk|elPositi|
|00000ce0| 6f 6e 4f 6e 50 61 72 65 | 6e 74 44 65 76 69 63 65 |onOnPare|ntDevice|
|00000cf0| 29 3b 0d 09 09 09 53 6b | 65 6c 50 6f 73 69 74 69 |);....Sk|elPositi|
|00000d00| 6f 6e 52 65 63 74 20 28 | 26 72 65 66 52 65 63 74 |onRect (|&refRect|
|00000d10| 2c 20 26 28 2a 2a 68 29 | 2e 62 6f 75 6e 64 73 52 |, &(**h)|.boundsR|
|00000d20| 65 63 74 2c 20 68 52 61 | 74 69 6f 2c 20 76 52 61 |ect, hRa|tio, vRa|
|00000d30| 74 69 6f 29 3b 0d 09 09 | 7d 0d 0d 09 09 49 6e 73 |tio);...|}....Ins|
|00000d40| 65 74 52 65 63 74 20 28 | 26 28 2a 2a 68 29 2e 62 |etRect (|&(**h).b|
|00000d50| 6f 75 6e 64 73 52 65 63 | 74 2c 20 64 6c 6f 67 42 |oundsRec|t, dlogB|
|00000d60| 6f 78 42 6f 72 64 65 72 | 2c 20 64 6c 6f 67 42 6f |oxBorder|, dlogBo|
|00000d70| 78 42 6f 72 64 65 72 29 | 3b 0d 09 7d 0d 09 49 6e |xBorder)|;..}..In|
|00000d80| 69 74 43 75 72 73 6f 72 | 20 28 29 3b 09 09 09 2f |itCursor| ();.../|
|00000d90| 2a 20 69 6e 20 63 61 73 | 65 20 69 74 20 63 6f 6d |* in cas|e it com|
|00000da0| 65 73 20 75 70 20 77 68 | 69 6c 65 20 63 75 72 73 |es up wh|ile curs|
|00000db0| 6f 72 20 69 73 20 64 69 | 66 66 65 72 65 6e 74 20 |or is di|fferent |
|00000dc0| 2a 2f 0d 09 72 65 73 75 | 6c 74 20 3d 20 41 6c 65 |*/..resu|lt = Ale|
|00000dd0| 72 74 20 28 61 6c 72 74 | 52 65 73 4e 75 6d 2c 20 |rt (alrt|ResNum, |
|00000de0| 66 69 6c 74 65 72 29 3b | 0d 09 28 2a 2a 68 29 2e |filter);|..(**h).|
|00000df0| 62 6f 75 6e 64 73 52 65 | 63 74 20 3d 20 6f 72 69 |boundsRe|ct = ori|
|00000e00| 67 52 65 63 74 3b 09 09 | 2f 2a 20 72 65 73 74 6f |gRect;..|/* resto|
|00000e10| 72 65 20 6f 72 69 67 69 | 6e 61 6c 20 70 6f 73 69 |re origi|nal posi|
|00000e20| 74 69 6f 6e 20 2a 2f 0d | 09 48 55 6e 6c 6f 63 6b |tion */.|.HUnlock|
|00000e30| 20 28 28 48 61 6e 64 6c | 65 29 20 68 29 3b 0d 09 | ((Handl|e) h);..|
|00000e40| 48 53 65 74 53 74 61 74 | 65 20 28 28 48 61 6e 64 |HSetStat|e ((Hand|
|00000e50| 6c 65 29 20 68 2c 20 73 | 74 61 74 65 29 3b 09 09 |le) h, s|tate);..|
|00000e60| 2f 2a 20 67 65 74 20 72 | 69 64 20 6f 66 20 72 65 |/* get r|id of re|
|00000e70| 73 6f 75 72 63 65 20 2a | 2f 0d 09 52 65 6c 65 61 |source *|/..Relea|
|00000e80| 73 65 52 65 73 6f 75 72 | 63 65 20 28 28 48 61 6e |seResour|ce ((Han|
|00000e90| 64 6c 65 29 20 68 29 3b | 0d 09 53 65 74 50 6f 72 |dle) h);|..SetPor|
|00000ea0| 74 20 28 6f 6c 64 50 6f | 72 74 29 3b 0d 09 72 65 |t (oldPo|rt);..re|
|00000eb0| 74 75 72 6e 20 28 72 65 | 73 75 6c 74 29 3b 0d 7d |turn (re|sult);.}|
|00000ec0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 01 00 00 00 02 d2 | 00 00 01 d2 00 00 00 5a |........|.......Z|
|00000f10| 69 74 68 6f 75 74 20 72 | 65 6d 6f 76 69 6e 67 20 |ithout r|emoving |
|00000f20| 69 74 20 61 6e 64 20 72 | 65 74 75 72 6e 20 68 61 |it and r|eturn ha|
|00000f30| 0b 53 6b 65 6c 41 6c 65 | 72 74 2e 63 02 00 00 00 |.SkelAle|rt.c....|
|00000f40| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00000f50| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 a9 9f 75 93 00 00 | 00 00 00 00 03 2c 20 69 |....u...|....., i|
|00000f80| 6e 20 74 68 65 20 6c 69 | 73 74 20 61 6e 64 20 77 |n the li|st and w|
|00000f90| 69 20 21 3d 20 6e 69 6c | 2e 0d 2a 2f 0d 0d 57 49 |i != nil|..*/..WI|
|00000fa0| 48 61 6e 64 6c 65 20 57 | 49 44 65 74 61 63 68 20 |Handle W|IDetach |
|00000fb0| 28 57 49 48 61 6e 64 6c | 65 20 77 69 4c 69 73 74 |(WIHandl|e wiList|
|00000fc0| 2c 20 57 49 48 61 6e 64 | 6c 65 20 77 69 29 0d 7b |, WIHand|le wi).{|
|00000fd0| 0d 57 49 48 61 6e 64 6c | 65 09 77 69 32 3b 0d 0d |.WIHandl|e.wi2;..|
|00000fe0| 09 69 66 20 28 28 77 69 | 32 20 3d 20 77 69 4c 69 |.if ((wi|2 = wiLi|
|00000ff0| 73 74 29 20 3d 3d 20 77 | 69 29 09 09 09 2f 2a 20 |st) == w|i).../* |
|00001000| 00 00 00 08 00 60 00 0c | 01 82 02 24 00 00 01 52 |.....`..|...$...R|
|00001010| 00 3c 00 19 02 26 01 28 | 00 18 00 00 06 e2 00 00 |.<...&.(|........|
|00001020| 06 e2 00 00 00 40 00 04 | 00 09 00 00 06 4d 6f 6e |.....@..|.....Mon|
|00001030| 61 63 6f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |aco.....|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 04 00 00 03 |........|........|
|00001070| 00 00 00 48 00 48 00 00 | 00 00 03 00 02 4c ff f4 |...H.H..|.....L..|
|00001080| ff f4 03 0c 02 58 03 47 | 05 28 03 fc 00 02 00 00 |.....X.G|.(......|
|00001090| 00 48 00 48 00 00 00 00 | 03 00 02 4c 00 01 00 00 |.H.H....|...L....|
|000010a0| 00 64 00 00 00 01 00 03 | 03 03 00 00 00 01 27 0f |.d......|......'.|
|000010b0| 00 01 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 68 08 00 19 01 90 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 04 | 00 09 00 00 06 4d 6f 6e |........|.....Mon|
|000010f0| 61 63 6f 08 00 00 00 00 | 00 00 00 00 00 00 00 00 |aco.....|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 04 01 00 |........|........|
|00001130| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 6c 00 04 | 00 00 07 1c 00 00 07 25 |.....l..|.......%|
|00001170| 09 53 6b 65 6c 41 6c 65 | 72 74 00 00 04 91 00 00 |.SkelAle|rt......|
|00001180| 04 a6 15 53 6b 65 6c 47 | 65 74 41 6c 65 72 74 50 |...SkelG|etAlertP|
|00001190| 6f 73 52 61 74 69 6f 73 | 00 00 05 f4 00 00 06 09 |osRatios|........|
|000011a0| 15 53 6b 65 6c 53 65 74 | 41 6c 65 72 74 50 6f 73 |.SkelSet|AlertPos|
|000011b0| 52 61 74 69 6f 73 00 00 | 06 57 00 00 06 57 13 53 |Ratios..|.W...W.S|
|000011c0| 6b 65 6c 54 65 73 74 52 | 65 63 74 56 69 73 69 62 |kelTestR|ectVisib|
|000011d0| 6c 65 00 00 01 00 00 00 | 02 d2 00 00 01 d2 00 00 |le......|........|
|000011e0| 00 5a 00 3b 9c 74 11 a2 | 00 00 00 1c 00 5a 00 02 |.Z.;.t..|.....Z..|
|000011f0| 52 45 43 54 00 00 00 1a | 42 42 53 52 00 00 00 26 |RECT....|BBSR...&|
|00001200| 4d 50 53 52 00 00 00 32 | 00 00 ff ff 00 00 00 00 |MPSR...2|........|
|00001210| 00 00 00 00 01 03 ff ff | 00 00 00 0c 00 00 00 00 |........|........|
|00001220| 03 ef ff ff 00 00 01 62 | 00 00 00 00 00 00 00 00 |.......b|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+